Avoid buffer text relocations in calls to STRING_CHAR_* macros.
authorEli Zaretskii <eliz@gnu.org>
Mon, 28 May 2012 16:50:10 +0000 (19:50 +0300)
committerEli Zaretskii <eliz@gnu.org>
Mon, 28 May 2012 16:50:10 +0000 (19:50 +0300)
commit3a5e7b44efc985abc381fab65ba9801254c25963
tree1caa964f98fe3eaec0984f689222c1c98e4a7714
parentc244bed48f95de19087226c5ce5d9751d66fea22
Avoid buffer text relocations in calls to STRING_CHAR_* macros.

 src/charset.c (maybe_unify_char): Inhibit relocation of buffer text
 for the duration of call to load_charset, to avoid problems with
 callers of maybe_unify_char that access buffer text through C
 pointers.
 src/ralloc.c (r_alloc_inhibit_buffer_relocation): Increment and
 decrement the inhibition flag, instead of just setting or
 resetting it.
src/ChangeLog
src/charset.c
src/ralloc.c